package com.hulk.dryad.web.api.vo;

import com.hulk.dryad.web.api.vo.base.ReqVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author  lqx
 * @date 2020/10/20
 * social登录
 */
@ApiModel(value = "social登录")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class CustomerSocialLoginReqVO extends ReqVO {

	/**
	 * 用户登录类型(社交类型)
	 */
	@NotBlank(message = "用户登录类型(社交类型)不能为空;")
	@ApiModelProperty(value = "用户登录类型(社交类型)不能为空", required = true)
	private String loginType;
    /**
     * 第三方授权code
     */
    @NotBlank(message = "社交码 不能为空;")
    @ApiModelProperty(value = "社交码", required = true)
    private String socialCode;

	/**client端的状态值。用于第三方应用防止CSRF攻击，成功授权后回调时会原样带回。请务必严格按照流程检查用户与state参数状态的绑定。 */
	@NotBlank(message = "client端的状态值 不能为空;")
	@ApiModelProperty(value = "client端的状态值", required = true)
    private String socialState;

}
